
package Datos;

import Productos.Lacteo;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Juan
 */
public class ConjuntoLacteos {
    private Map<Integer, Lacteo> lstLacteos = new HashMap<>();

    public ConjuntoLacteos() {
    }

    public Map<Integer, Lacteo> getLstLacteos() {
        return lstLacteos;
    }

    public void setLstLacteos(Map<Integer, Lacteo> lstLacteos) {
        this.lstLacteos = lstLacteos;
    }
    
    public void addLacteo (Lacteo lacteo){
        lstLacteos.put(lacteo.getCodLacteo(), lacteo);
    }
    
    public void borrarLacteo (Lacteo lacteo){
        lstLacteos.remove(lacteo.getCodLacteo());
    }

    @Override
    public String toString() {
        return "ConjuntoLacteos{" + "lstLacteos=" + lstLacteos + '}';
    }
    
    
}
